<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>extractor</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" />
    <link rel="up" href="UtilityOther.html" title="Other Csound Utilities (CS, CSB64ENC, ENVEXT, EXTRACTOR, MAKECSD, MIXER, SCALE, MKDB)" />
    <link rel="prev" href="envext.html" title="envext" />
    <link rel="next" href="makecsd.html" title="makecsd" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">extractor</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="envext.html">Prev</a> </td>
          <th width="60%" align="center">Other Csound Utilities (CS, CSB64ENC, ENVEXT, EXTRACTOR,
  MAKECSD, MIXER, SCALE, MKDB)</th>
          <td width="20%" align="right"> <a accesskey="n" href="makecsd.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry">
      <a id="extractor"></a>
      <div class="titlepage"></div>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">extractor</span>
        </h2>
        <p>extractor — 
      Extract a section of audio from an audio file.
      <a id="IndexExtractor" class="indexterm"></a>
    </p>
      </div>
      <div class="refsect1">
        <a id="idp223770640"></a>
        <h2>Description</h2>
        <p>
        Extract a section of audio, by time or sample, from an
    existing sound file.
    </p>
      </div>
      <div class="refsect1">
        <a id="idp223771904"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>extractor</strong></span> [OPTIONS ... ] infile</pre>
      </div>
      <div class="refsect1">
        <a id="idp223773824"></a>
        <h2>Initialization</h2>
        <p>
      Flags:

      </p>
        <div class="itemizedlist">
          <ul class="itemizedlist" style="list-style-type: disc; ">
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>S integer</em></span>
              = Start the extract at the given sample number.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>Z integer</em></span>
              = End the extract at the given sample number.
          </p>
            </li>
            <li class="listitem">
              <p>
              - <span class="emphasis"><em>Q integer</em></span>
              = Extract given number of samples.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>T fpnum</em></span>
              = Start the extract at the given time in seconds.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>E fpnum</em></span>
              = End the extract at the given time in seconds.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>D fpnum</em></span>
              = Extract given time in seconds.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>v</em></span>
              = Verbose mode.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>R</em></span>
              = Continually rewrite the header while writing soundfile
              (WAV/AIFF). 
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>H integer</em></span>
              = Show a "heart-beat" to indicate progress, in style 1,
              2 or 3.          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>N</em></span>
              = Alert call (usually ringing the bell) when finished.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>v</em></span>
              = Verbose mode.
          </p>
            </li>
            <li class="listitem">
              <p>
        		-<span class="emphasis"><em>o fname</em></span>
        		= output file name (default: test.wav)
        	</p>
            </li>
          </ul>
        </div>
        <p>

    </p>
      </div>
      <div class="refsect1">
        <a id="idp223791008"></a>
        <h2>Examples</h2>
        <p>

        The default values are
</p>
        <pre class="programlisting">
    <span class="emphasis"><em>extractor</em></span> -S 0 -Z end-of-file -otest</pre>
        <p>

    For example
</p>
        <pre class="programlisting">
    <span class="emphasis"><em>extractor</em></span> -S 10234 -D 2.13 in.aiff -o out.wav</pre>
        <p>


  		This creates a new sound file taken from sample 10234
  		and lasting 2.13 seconds.
  	</p>
      </div>
      <div class="refsect1">
        <a id="idp223794624"></a>
        <h2>Credits</h2>
        <p>Author: John ffitch</p>
        <p>1994</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="envext.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="UtilityOther.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="makecsd.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">envext </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> makecsd</td>
        </tr>
      </table>
    </div>
  </body>
</html>
